package cn.dckeji.gameBox.service.impl;

import cn.dckeji.gameBox.entity.Loginlog;
import cn.dckeji.gameBox.dao.LoginlogDao;
import cn.dckeji.gameBox.service.LoginlogService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2018-08-20
 */
@Service
public class LoginlogServiceImpl extends ServiceImpl<LoginlogDao, Loginlog> implements LoginlogService {
    @Autowired
    private LoginlogDao loginlogDao;
    @Override
    public Page<Map<String, Object>> getLoginLogContinue(Map<String, Object> maps) {
        int pageNums=(int)maps.get("pageNum");
        int current=(int)maps.get("current");
        Page<Map<String, Object>> page = new Page<>(pageNums,current);
        return page.setRecords(this.baseMapper.getLoginLogContinue(page, maps));
    }
}
